//
//  ItemMeunView.h
//  XHUI
//
//  Created by 郑信鸿 on 16/11/18.
//  Copyright © 2016年 郑信鸿. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    
    TopTitleItem,
    TopImageItem
    
} ItemMeunViewType;

@class ItemMeunView;

@protocol ItemMeunViewDelegate <NSObject>

- (void)itemMeunViewAction:(ItemMeunView *)meunView;

@end

@interface ItemMeunView : UIView


@property(nonatomic, strong)UIColor *meunTitleColor;
@property(nonatomic, strong)UIColor *topTitleColor;
@property(nonatomic, strong)UIColor *bottomTitleColor;

@property(nonatomic, strong)UIFont *meunFont;
@property(nonatomic, strong)UIFont *topFont;
@property(nonatomic, strong)UIFont *bottomFont;

@property(nonatomic, assign)CGFloat centerGap;

@property(nonatomic, strong)NSString *bottomTitle;
@property(nonatomic, strong)NSString *topTitle;
@property(nonatomic, strong)UIImage *image;



@property(nonatomic, assign)id<ItemMeunViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame imageName:(NSString *)imageName bottomTitle:(NSString *)bottomTitle;

- (void)loadImageName:(NSString *)imageName bottomTitle:(NSString *)bottomTitle;


- (instancetype)initWithFrame:(CGRect)frame topTitle:(NSString *)topTitle bottomTitle:(NSString *)bottomTitle;

- (void)loadTopTitle:(NSString *)topTitle bottomTitle:(NSString *)bottomTitle;



@end
